package com.ce.cetag.model;

import java.util.ArrayList;
import java.util.List;
/**
 *
 *  功能描述：
 *
 * <p> 版权所有：中企动力</p>
 * <p> 未经本公司许可，不得以任何方式复制或使用本程序</p>
 * @author ��˧��贺帅彪
 * @create date : 2007-9-7
 */
public class MySelectModel {
	private String id;

	private String name;

	@SuppressWarnings("unchecked")
	private List<MySelectModel> childs = new ArrayList();

	public MySelectModel() {
		this("Head", "Head");
	}

	public MySelectModel(String id, String name) {
		this.id = id;
		this.name = name;
	}

	public MySelectModel add(MySelectModel model) {
		childs.add(model);
		return this;
	}

	public MySelectModel add(int i,MySelectModel model) {
		childs.add(i,model);
		return this;
	}

	public int getSize() {
		return this.childs.size();
	}

	public MySelectModel get(int i) {

		return this.childs.get(i);
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

}
